Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random scrub pattern #2395

Merged
merged 1 commit into from
Nov 17, 2016
Merged

Random scrub pattern #2395

merged 1 commit into from
Nov 17, 2016

Conversation

meased
Copy link
Contributor

@meased meased commented Oct 3, 2016

Randomized dot pattern for scrub using http://www.imagico.de/map/jsdotpattern.php. Background color is unchanged, however foreground icon color is slightly desaturated. It looked too green to me so I tried to follow the style of natural=wood.

Fixes #2253.

Before ... after

beforenafter18
beforenafter15
beforenafter14

As the old scrub icon is png only and jsdotpattern requires svg, I created a nearly identical svg version of the scrub icon and included it in this PR, although it's not used other than for the pattern generation.

For reference, jsdotpattern settings were:

  • regular snub square
  • distance = 45
  • radius = 64
  • radius y = 64
  • about 10+ relax clicks

@kocio-pl
Copy link
Collaborator

kocio-pl commented Oct 3, 2016

Nice result and nice color too!

Please move the files to symbols/generating_patterns directory and add basic documentation about how to generate it to the file named like scrub.md.

@imagico
Copy link
Collaborator

imagico commented Oct 3, 2016

Pattern looks good, the symbol color is too grayish i think - it does not have to be as strong as with the old pattern but it should be at least the same chroma as the base color.

@meased
Copy link
Contributor Author

meased commented Oct 3, 2016

The color was derived by starting with scrub color and then dialing down the lightness and saturation. I did go pretty far with the saturation, as it seems that natural=wood is rather grayish to me also. I'll make the documentation changes when I get back to a computer, and also experiment with some saturation changes.

@imagico
Copy link
Collaborator

imagico commented Oct 3, 2016

You should do color adjustments in a perceptually uniform color space

Good point to start:

http://davidjohnstone.net/pages/lch-lab-colour-gradient-picker#b6e3b5,a1c8a1,9dc99d

@meased
Copy link
Contributor Author

meased commented Oct 4, 2016

What do you think of #7ebd7f?
greener
Compare to the original example color #94b995
scruborig

@imagico
Copy link
Collaborator

imagico commented Oct 4, 2016

Yes, better - maybe even somewhat strong so it could be lightened a bit.

The pattern by the way should probably go into the landcover-area-symbols layer so it drawn above other landcovers like for wood/forest.

@meased
Copy link
Contributor Author

meased commented Oct 5, 2016

Symbol definition has been moved to landcover_area_symbols, scrub.md has been added, changed icon color to #8ece8f (about 5% lighter):
scrublighter

@imagico
Copy link
Collaborator

imagico commented Oct 7, 2016

By the way i added the scrub symbol used here as scrub2 to jsdotpattern and converted it to a filled polygon instead of strokes making it more in line with other SVGs used here - you might want to change this accordingly.

@meased
Copy link
Contributor Author

meased commented Oct 7, 2016

Thanks, that will make it a lot easier to reproduce the images. I was having problems getting the original scrub icon on jsdotpattern pixel aligned, which is why I didn't use it here.

@sommerluk
Copy link
Collaborator

It might be a good idea to requiere Mapnik3 #2401 and make this PR directly with a SVG pattern instead of a PNG pattern…

@kocio-pl
Copy link
Collaborator

kocio-pl commented Oct 8, 2016

We have a ticket about it (#2045) and it's related to #2401 and #2198.

@kocio-pl
Copy link
Collaborator

If there are no objections, I would try to merge this PR in the current form. SVG patterns have to wait until we decide what to do with Mapnik 2.

@matthijsmelissen
Copy link
Collaborator

👍

@imagico
Copy link
Collaborator

imagico commented Nov 16, 2016

To be in line with the other patterns the SVG should be updated to use fill based rather than stroke based geometries. I was going to evaluate the pattern color intensity in comparison to other map elements but did not yet have time to do so.

@kocio-pl
Copy link
Collaborator

kocio-pl commented Nov 16, 2016

I leave it to you then (I mean code update and merging).

The only important thing for me is to not wait forever with a useful change, so could you tell how much time do you think you need in reality? I just would like to take over if this safe "deadline" is crossed and nobody knows what is the current status.

@imagico
Copy link
Collaborator

imagico commented Nov 16, 2016

Just relax - a few days more will not hurt anyone.

Besides - it would be good if @meased could update the SVG as noted.

And modify scrub.md reflecting that the symbol is now in jsdotpattern please.

@meased
Copy link
Contributor Author

meased commented Nov 16, 2016

Sure thing. I should be able to get that done tonight or tomorrow.

@kocio-pl
Copy link
Collaborator

@imagico It's more about knowing that there's something stalled than doing anything fast.

There's no absolute measure of things getting stalled, but while time-based checkpoints are only relative (some things may need hours, while others weeks and months), they are super useful to detect there are any kind of problems that may need attention.

@meased
Copy link
Contributor Author

meased commented Nov 17, 2016

Documentation and SVG file updated. I believe everything is in order.

@imagico imagico merged commit 33b59b8 into gravitystorm:master Nov 17, 2016
@imagico
Copy link
Collaborator

imagico commented Nov 17, 2016

Looks good, nice work with the pattern and color, very well balanced.

Thanks.

@sommerluk
Copy link
Collaborator

Thanks a lot!

@kocio-pl
Copy link
Collaborator

kocio-pl commented Dec 2, 2016

A bit off topic - interesting combination of scrub and brownfield colors:

http://www.openstreetmap.org/way/24050682

@mboeringa
Copy link

mboeringa commented Dec 2, 2016

A bit off topic - interesting combination of scrub and brownfield colors:

http://www.openstreetmap.org/way/24050682

That is largely a consequence of this remark by @imagico :

The pattern by the way should probably go into the landcover-area-symbols layer so it drawn above other landcovers like for wood/forest.

While for the particular situation you pointed out (scrub & brownfield = a landcover & "kind of" administrative boundary), the implemented layering may make some sense (after all, there may be a patch of scrub on a brownfield), I am less convinced this behaviour is desired in the particular situation @imagico pointed out: something is either a forest/woodland, or its scrub, not both IMO. Unfortunately, with this current behaviour, people are likely to map both in the same place, which I don't think is a good idea and will lead to ambiguous tagging and symbolization issues: what to do with the overlapping areas?

Not all data consumers will have the ability or wish to deal with to much of this type of overlapping related features / landcovers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants